<div class="main-div">
<form action="" method="post" id="formID">
    <input type="hidden" name="uri" value="<?php echo $this->uri;?>" />
    <input type="hidden" name="admin_id" id="admin_id" value="<?php echo $this->userInfo['admin_id'];?>" />
    <input type="hidden" name="act" value="<?php echo $this->userInfo['act'] ? 'save' : '';?>" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="22%" height="30" align="right">管理员名称：</td>
		<td width="78%"><label><span><input class="validate[required,length[5,15]] text-input" name="admin_name" type="text" id="admin_name" <?php echo isset($this->userInfo['admin_name']) ? 'value="'. $this->userInfo['admin_name'] .'" readonly=true' : ''; ?> /></span></label><span class="red">*</span></td>
	</tr>
    <?php
    if (isset($this->userInfo['admin_id'])) {
    ?>
	<tr>
		<td height="30" align="right">原密码：</td>
		<td><input class="validate[required,length[4,15]] text-input" name="user_password_old" type="password" id="user_password_old" /><span class="red">*</span></td>
	</tr>
    <?php
    }
    ?>
	<tr>
		<td height="30" align="right">密码：</td>
		<td><input class="validate[required,length[4,15]] text-input" name="user_password" type="password" id="user_password" /><span class="red">*</span></td>
	</tr>
	<tr>
		<td height="30" align="right">确认密码：</td>
		<td><input class="validate[required,length[4,15]] text-input" name="user_password2" type="password" id="user_password2" /><span class="red">*</span></td>
	</tr>
	<tr>
		<td height="30" align="right">邮箱地址：</td>
		<td><input name="user_email" type="text" class="" style="width:250px;" id="user_email" value="<?php echo isset($this->userInfo['email']) ? $this->userInfo['email'] : ''; ?>" /></td>
	</tr>
	<tr>
		<td height="30" align="right" valign="top">备注：</td>
		<td><textarea name="user_desc" cols="40" rows="5" id="user_desc"><?php echo isset($this->userInfo['desc']) ? $this->userInfo['desc'] : ''; ?></textarea></td>
	</tr>
	<tr>
		<td height="63" align="right">&nbsp;</td>
		<td><input type="submit" name="Submit" value="确认" class="button" onclick="return adminUserAdd()" />
			&nbsp;&nbsp; <input type="reset" name="Submit2" value="重置" class="button" /></td>
	</tr>
	<tr>
		<td height="30">&nbsp;</td>
        <td>&nbsp;<span class="red"><?php echo isset($this->errors['data_invalid']) ? $this->errors['data_invalid'] : '';?></span></td>
	</tr>
</table>
</form>
</div>

